<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head>
	<title><h:outputText value="#{msgs.titulo_login}"></h:outputText></title> 	
</h:head>

<h:body onload="dlg.show();">
		<h:outputStylesheet library="css" name="default.css" />
				
		<p:growl id="growl" life="3000" />
		<p:dialog id="dialog" header="#{msgs.dialog_login}" widgetVar="dlg" closable="false">
			<h:form>
				<h:panelGrid columns="2" cellpadding="5">
					<h:outputLabel for="login" value="#{msgs.label_usuario}: " />
					<p:inputText value="#{loginBean.usuarioSistema.login}" id="login" required="true" label="login" requiredMessage="#{msgs.obrigatorio_usuario}" />

					<h:outputLabel for="senha" value="#{msgs.label_senha}: " />
					<p:password value="#{loginBean.usuarioSistema.senha}" feedback="false" id="senha" required="true" label="Senha" requiredMessage="#{msgs.obrigatorio_senha}" />

					<f:facet name="footer">
						<p:commandButton value="#{msgs.botao_entrar}" update="growl" actionListener="#{loginBean.entrar}" />
					</f:facet>
				</h:panelGrid>
			</h:form>					
		</p:dialog>

</h:body>
</html>